<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="../jsjar/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#sh").click(function(){
		$("#myaaa").load("${pageContext.request.contextPath }/wares/spff?fid=${fuser.fid }&id=${wares.wid}");
		return false;
	});
});
</script>

<style type="text/css">
*{margin:0px; padding:0px;}
body{background: #ffffff url("../imgs/2.jpg");background-size:100% 230%;}
#myaaa{width:1049px;margin: auto;height:660px ;border-radius: 10px;margin-top:10px;}
.table1{border:0px solid blue;margin:3px; float:left;width:900px;}
#divtable{padding-top:10px;padding-left:20px;}
#tdli{width:400px;height:240px;padding-top:40px;}
#sh{width:170px;height:27px;border-radius: 10px;border-color:black;}
</style>
<body>
<div id="myaaa">
<div id="divtable">
<table id="table1">
	<tr>
			<td><a class="foodname" myid="${wares.wid}" href="#"><img src="../imgs/${wares.wphone }"  alt="图片仅供参考" style="width:480px;height:295px;border-radius: 10px;"></a></td>
			<td>
			<ul class="li" id="tdli">
			<li>${wares.wname }</li>
			<li>¥&nbsp${wares.wprice }元</li>
			<li>${wares.recommendation }</li>
			<li>库存:${wares.winventory } / 已售出:${wares.fsell }</li>
			</ul>
			<ul>
				<li><button id="sh">加入购物车</button></li>
			</ul>
			</td>
		</tr>
		
</table>
</div>
</div>
</body>
</html>